<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/Common Module/file_table.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_df4e0e4e72f77ab290fd1a24f190250a.html">Common Module</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">file_table.h</div></div>
</div><!--header-->
<div class="contents">
<a href="file__table_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="preprocessor">#ifndef __FILE_TABLE_H__</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="preprocessor">#define __FILE_TABLE_H__</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="preprocessor">#include &quot;SWM341.h&quot;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="preprocessor">#include &quot;<a class="code" href="load__file_8h.html">load_file.h</a>&quot;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span><span class="preprocessor">#include &quot;lv_ll.h&quot;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="comment">/* 以下索引仅对 文件表 有效, 不可与其他表混用 (File Table =&gt; FT)</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="comment"> * 当列表发生变化时，应当更新其对应索引</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="comment"> */</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="comment">/*----------------------------------视频素材---------------------------------*/</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="file__table_8h.html#ac8e6df38331152c1e09f9a43e6ab34a3">   39</a></span><span class="preprocessor">#define FT_MOVE_VIDEO           0 </span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="file__table_8h.html#a1050bc568c1b6f276b9280fa238912e4">   40</a></span><span class="preprocessor">#define FT_SPI_VIDEO            1 </span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="file__table_8h.html#aec8b5b0a209dc4a8ba91a7fd22236ea5">   41</a></span><span class="preprocessor">#define FT_SPI_VIDEO_AREA       2 </span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="file__table_8h.html#ac482e9c7e4db518dbc7e02d01d8caa3d">   43</a></span><span class="preprocessor">#define FT_VIDEO_NUM            3 </span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span><span class="comment">/*----------------------------------音频素材---------------------------------*/</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="file__table_8h.html#abd8ee0b50a27c12e2af83db22bc26ede">   46</a></span><span class="preprocessor">#define FT_MUSIC_ICON           3 </span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="file__table_8h.html#a7a9702ead4c21edbea23cea388ce9774">   47</a></span><span class="preprocessor">#define FT_MUSIC_SLIDE          4 </span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="file__table_8h.html#aec25a2051242e8cef091f04dc5efb53f">   49</a></span><span class="preprocessor">#define FT_MUSIC_NUM            2 </span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="comment">/*----------------------------------字库素材---------------------------------*/</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="file__table_8h.html#a069cf883e005e1770e12456e244f8c65">   52</a></span><span class="preprocessor">#define FT_FONT_CHINA           5 </span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="file__table_8h.html#ad9072054406a903237e6ea1c0e6ff327">   54</a></span><span class="preprocessor">#define FT_FONT_NUM             1 </span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span><span class="comment">/*----------------------------------图片素材---------------------------------*/</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="file__table_8h.html#a53bd581d915222e8bcbd0f453dcc60ef">   57</a></span><span class="preprocessor">#define FT_IMG_START            6 </span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="file__table_8h.html#a9e2b981a0be65b6e5506b5c71aa62753">   59</a></span><span class="preprocessor">#define FT_IMG_NUM              71 </span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="structuser__file__t.html">   62</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>{</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="structuser__file__t.html#a8f8f80d37794cde9472343e4487ba3eb">   64</a></span>    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code hl_variable" href="structuser__file__t.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>; </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>    <span class="comment">/* 不使用文件系统时, 须增加如下成员以重写素材存储管理接口 */</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>    <span class="comment">//uint32_t addr; /**&lt; 起始地址 */</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>    <span class="comment">//uint32_t size; /**&lt; 大小偏移 */</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>} <a class="code hl_struct" href="structuser__file__t.html">user_file_t</a>;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="structtable__class__t.html">   72</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>{</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="structtable__class__t.html#a5be3dd4ebfa388f80036fee2ac2768f1">   74</a></span>    <a class="code hl_struct" href="structuser__file__t.html">user_file_t</a> *<a class="code hl_variable" href="structtable__class__t.html#a5be3dd4ebfa388f80036fee2ac2768f1">file</a>;   </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="structtable__class__t.html#a50759ab8147814e1075b574b51d12e64">   75</a></span>    uint32_t <a class="code hl_variable" href="structtable__class__t.html#a50759ab8147814e1075b574b51d12e64">table_size</a>; </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>} <a class="code hl_struct" href="structtable__class__t.html">table_class_t</a>;</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span> </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span><span class="keyword">extern</span> <a class="code hl_struct" href="structtable__class__t.html">table_class_t</a> <a class="code hl_variable" href="file__table_8h.html#a210f9e081ee07b322afeec966766b06a">File_Table</a>;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span> </div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>uint32_t <a class="code hl_function" href="file__table_8h.html#a3b8264ecd2971c7f1409a78c16a80fff">check_file_table</a>(<span class="keyword">const</span> <a class="code hl_enumeration" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997">disk_t</a> disk, <span class="keyword">const</span> <a class="code hl_struct" href="structtable__class__t.html">table_class_t</a> *file_table,</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>                          <span class="keyword">const</span> uint32_t start_index, <span class="keyword">const</span> uint32_t num);</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>uint8_t <a class="code hl_function" href="file__table_8h.html#a9f89967794eeb4df91c77da5f983e163">show_copying_file_table</a>(<span class="keyword">const</span> <a class="code hl_enumeration" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997">disk_t</a> src_disk, <span class="keyword">const</span> <a class="code hl_enumeration" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997">disk_t</a> dst_disk,</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>                                <span class="keyword">const</span> <a class="code hl_struct" href="structtable__class__t.html">table_class_t</a> *file_table,</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>                                <span class="keyword">const</span> uint32_t start_index, <span class="keyword">const</span> uint32_t num);</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span>uint8_t <a class="code hl_function" href="file__table_8h.html#ae9814059aade68167dd27fac6439fa67">show_copying_file_list</a>(<span class="keyword">const</span> <a class="code hl_enumeration" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997">disk_t</a> src_disk, <span class="keyword">const</span> <a class="code hl_enumeration" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997">disk_t</a> dst_disk, lv_ll_t *file_list);</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span> </div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span><span class="preprocessor">#endif </span><span class="comment">//__FILE_TABLE_H__</span></div>
<div class="ttc" id="afile__table_8h_html_a210f9e081ee07b322afeec966766b06a"><div class="ttname"><a href="file__table_8h.html#a210f9e081ee07b322afeec966766b06a">File_Table</a></div><div class="ttdeci">table_class_t File_Table</div><div class="ttdoc">文件表</div><div class="ttdef"><b>Definition:</b> <a href="file__table_8c_source.html#l00296">file_table.c:296</a></div></div>
<div class="ttc" id="afile__table_8h_html_a3b8264ecd2971c7f1409a78c16a80fff"><div class="ttname"><a href="file__table_8h.html#a3b8264ecd2971c7f1409a78c16a80fff">check_file_table</a></div><div class="ttdeci">uint32_t check_file_table(const disk_t disk, const table_class_t *file_table, const uint32_t start_index, const uint32_t num)</div><div class="ttdoc">按文件表依次验证磁盘文件</div><div class="ttdef"><b>Definition:</b> <a href="file__table_8c_source.html#l00342">file_table.c:342</a></div></div>
<div class="ttc" id="afile__table_8h_html_a9f89967794eeb4df91c77da5f983e163"><div class="ttname"><a href="file__table_8h.html#a9f89967794eeb4df91c77da5f983e163">show_copying_file_table</a></div><div class="ttdeci">uint8_t show_copying_file_table(const disk_t src_disk, const disk_t dst_disk, const table_class_t *file_table, const uint32_t start_index, const uint32_t num)</div><div class="ttdoc">按文件表拷贝文件并显示拷贝过程 UI</div><div class="ttdef"><b>Definition:</b> <a href="file__table_8c_source.html#l00379">file_table.c:379</a></div></div>
<div class="ttc" id="afile__table_8h_html_ae9814059aade68167dd27fac6439fa67"><div class="ttname"><a href="file__table_8h.html#ae9814059aade68167dd27fac6439fa67">show_copying_file_list</a></div><div class="ttdeci">uint8_t show_copying_file_list(const disk_t src_disk, const disk_t dst_disk, lv_ll_t *file_list)</div><div class="ttdoc">按文件名链表拷贝文件并显示拷贝过程 UI</div><div class="ttdef"><b>Definition:</b> <a href="file__table_8c_source.html#l00480">file_table.c:480</a></div></div>
<div class="ttc" id="aload__file_8h_html"><div class="ttname"><a href="load__file_8h.html">load_file.h</a></div><div class="ttdoc">加载/拷贝文件</div></div>
<div class="ttc" id="aload__file_8h_html_a44edb5dd69763758dda6af4dd162c997"><div class="ttname"><a href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997">disk_t</a></div><div class="ttdeci">disk_t</div><div class="ttdoc">磁盘类型</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8h_source.html#l00040">load_file.h:41</a></div></div>
<div class="ttc" id="astructtable__class__t_html"><div class="ttname"><a href="structtable__class__t.html">table_class_t</a></div><div class="ttdoc">文件类</div><div class="ttdef"><b>Definition:</b> <a href="file__table_8h_source.html#l00072">file_table.h:73</a></div></div>
<div class="ttc" id="astructtable__class__t_html_a50759ab8147814e1075b574b51d12e64"><div class="ttname"><a href="structtable__class__t.html#a50759ab8147814e1075b574b51d12e64">table_class_t::table_size</a></div><div class="ttdeci">uint32_t table_size</div><div class="ttdoc">文件表总数量</div><div class="ttdef"><b>Definition:</b> <a href="file__table_8h_source.html#l00075">file_table.h:75</a></div></div>
<div class="ttc" id="astructtable__class__t_html_a5be3dd4ebfa388f80036fee2ac2768f1"><div class="ttname"><a href="structtable__class__t.html#a5be3dd4ebfa388f80036fee2ac2768f1">table_class_t::file</a></div><div class="ttdeci">user_file_t * file</div><div class="ttdoc">文件</div><div class="ttdef"><b>Definition:</b> <a href="file__table_8h_source.html#l00074">file_table.h:74</a></div></div>
<div class="ttc" id="astructuser__file__t_html"><div class="ttname"><a href="structuser__file__t.html">user_file_t</a></div><div class="ttdoc">用户文件信息</div><div class="ttdef"><b>Definition:</b> <a href="file__table_8h_source.html#l00062">file_table.h:63</a></div></div>
<div class="ttc" id="astructuser__file__t_html_a8f8f80d37794cde9472343e4487ba3eb"><div class="ttname"><a href="structuser__file__t.html#a8f8f80d37794cde9472343e4487ba3eb">user_file_t::name</a></div><div class="ttdeci">const char * name</div><div class="ttdoc">文件名</div><div class="ttdef"><b>Definition:</b> <a href="file__table_8h_source.html#l00064">file_table.h:64</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
